@extends('admin/layout/index')

@section('title')
    轮播添加
@endsection

@section('content')
    <div class="mws-panel grid_8">
        <div class="mws-panel-header">
            <span>轮播添加</span>
        </div>
        <div class="mws-panel-body no-padding">
            <form class="mws-form" action="/admin/lunbo/update/{{$data['lb_id']}}" method="post" enctype="multipart/form-data">
                {{ csrf_field() }}
                <div class="mws-form-inline">
                    <div class="mws-form-row">
                        <label class="mws-form-label">轮播名称</label>
                        <div class="mws-form-item">
                            <input type="text" class="small" name="name" value="{{$data['lb_name']}}">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">轮播路径</label>
                        <div class="mws-form-item">
                            <input type="text" class="small" name="url" value="{{$data['lb_url']}}">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">选择图片</label>
                        <div class="mws-form-item">
                            <img src="/public/lbimage/{{$data['lb_pic']}}" alt="" width="100px">
                            <input type="file" class="small" name="pic" value="">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">状态</label>
                        <div class="mws-form-item clearfix">
                            <ul class="mws-form-list inline">
                                <li><input type="radio" name="status" value="1" @if($data['lb_status'] == 1) checked @endif> <label>开启</label></li>
                                <li><input type="radio" name="status" value="2" @if($data['lb_status'] == 2) checked @endif> <label>关闭</label></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="mws-button-row">
                    <input type="submit" value="提交" class="btn btn-danger">
                    <input type="reset" value="重置" class="btn ">
                </div>
            </form>
        </div>      
    </div>
@endsection